package com.master.chat.llm.doubao.test;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;

public class test {
    public static void main(String[] args) throws IOException {
        File inputFile = new File("D:\\system\\Desktop\\OIP-C.jpg");
        String[] formats = ImageIO.getReaderFormatNames();
        System.out.println("支持的格式：" + Arrays.toString(formats));
        BufferedImage img = ImageIO.read(inputFile);
    }
}
